package com.qf.mapper;/*
    Dell
    2021/10/13
    11:06
*/

import com.qf.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface StudentMapper {
    List<Student> showAll();

    Student selectByStuId(Integer stuId);

    List<Student> selectByGenderAndAddress(String stuGender,String stuAddress);

    List<Student> selectByGenderAndAddressAndGradeId(Map<String,Object> map);

    List<Student> selectByAddressAndGradeId(@Param("addr") String stuAddress, @Param("gid") Integer gradeId);

    List<Student> selectByStuName(String stuName);

    int insert(Student student);

    int update(Student student);

    int delete(Integer stuId);
}
